import { search } from '@/api/search/search'

const state = {
}

const mutations = {
}

const actions = {
  searchProduct({ commit }, searchParams) {
    return new Promise((resolve, reject) => {
      search(searchParams)
        .then(response => {
          resolve(response)
        }).catch(error => {
          reject(error)
        })
    })
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
